KANDA DATA

  • Home
  • About Us
  • Contact
  • Sitemap
  • Privacy Policy
  • Disclaimer
Menu
  • Home
  • About Us
  • Contact
  • Sitemap
  • Privacy Policy
  • Disclaimer
Home/Multiple Linear Regression/How to Calculate bo, b1, and b2 Coefficient Manually in Multiple Linear Regression

Blog

26,658 views

How to Calculate bo, b1, and b2 Coefficient Manually in Multiple Linear Regression

By Kanda Data / Date Mar 29.2022
Multiple Linear Regression

It is essential to understand the calculation of the estimated Coefficient of multiple linear regression. Completing these calculations requires an understanding of how to calculate using a mathematical equation formula. But for most people, the manual calculation method is quite difficult.

Based on these conditions, on this occasion, I will discuss and provide a tutorial on how to calculate multiple linear regression coefficients easily. This time, the case example that I will use is multiple linear regression with two independent variables.

In the example case that I will discuss, it consists of: (a) rice consumption as the dependent variable; (b) Income as the 1st independent variable; and (c) Population as the 2nd independent variable. Based on the variables mentioned above, I want to know how income and population influence rice consumption in 15 countries.

Rice consumption is measured with million tons, income with million per capita, and population with million people. Next, I compiled the specifications of the multiple linear regression model, which can be seen in the equation below:

The Formula of Regression Coefficient Calculation

In calculating the estimated Coefficient of multiple linear regression, we need to calculate b1 and b2 first. The bo (intercept) Coefficient can only be calculated if the coefficients b1 and b2 have been obtained.

I have read the econometrics book by Koutsoyiannis (1977). I chose to use a more straightforward and easier formula to calculate in the book.

But first, we need to calculate the difference between the actual data and the average value. This calculation is carried out for rice consumption (Y), income (X1), and population (X2) variables.

Calculating the actual data is reduced by the average value; I use lowercase to distinguish from actual data. The formula for calculating multiple linear regression coefficients refers to the book written by Koutsoyiannis, which can be seen in the image below:

Exercises for Calculating b0, b1, and b2

After we have compiled the specifications for the multiple linear regression model and know the calculation formula, we practice calculating the values of b0, b1, and b2. To make it easier to practice counting, I will give an example of the data I have input in excel with n totaling 15, as can be seen in the table below:

To facilitate calculations and avoid errors in calculating, I use excel. Next, based on the formula presented in the previous paragraph, we need to create additional columns in excel. The additional columns are adjusted to the components of the calculation formulas b0, b1, and b2.

Based on the formula for b0, b1, and b2, I have created nine additional columns in excel and two additional rows to fill in Sum and Average. You can check the formula as shown in the image below:

In the next step, we can start doing calculations with mathematical operations. We can easily calculate it using excel formulas.

The calculations of b0, b1, and b2 that I have calculated can be seen in the image below:

Furthermore, the results of calculations using the formula obtained the following values:

To crosscheck the calculations, I have done an analysis using SPSS with the estimated coefficients as follows:

If you want to enhance your understanding of multiple linear regression and learn how to interpret coefficients intuitively, I highly recommend the book Regression Analysis: An Intuitive Guide for Using and Interpreting Linear Models. It’s a practical resource for both beginners and advanced learners.

Well, that’s the tutorial and discussion this time I convey to you. Hopefully, it will provide a deeper understanding for you. See you in the following article!

3 comments / Tags: formula to calculate coefficient b0 b1 and b2, how to calculate regression coefficients, how to calculate the coefficient b0 b1 and b2, how to find the coefficient b0 and b1 in multiple linear regression, multiple linear regression, regression with two independent variables, the multiple linear regression equation

Related posts

How to Create Dummy Variables in Multiple Linear Regression Analysis

Date Jul 31.2025

How to Detect Normally Distributed Data in Linear Regression Analysis

Date Jul 28.2025

How to Automatically Display Residual Values in Regression Analysis Using Excel

Date Apr 25.2025

3 comments

  1. Pingback: How to Determine R Square (Coefficient of determination) in Multiple Linear Regression - KANDA DATA

  2. Pingback: How to Calculate Variance, Standard Error, and T-Value in Multiple Linear Regression - KANDA DATA

  3. Kanda Data Post authorNov 03.2022 at 9:53 pm
    Log in to Reply

    Thank you

Leave a Reply Cancel reply

You must be logged in to post a comment.

Categories

  • Article Publication
  • Assumptions of Linear Regression
  • Comparison Test
  • Correlation Test
  • Data Analysis in R
  • Econometrics
  • Excel Tutorial for Statistics
  • Multiple Linear Regression
  • Nonparametric Statistics
  • Profit Analysis
  • Regression Tutorial using Excel
  • Research Methodology
  • Simple Linear Regression
  • Statistics

Popular Post

September 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  
« Aug    
  • How to Sort Values from Highest to Lowest in Excel
  • How to Perform Descriptive Statistics in Excel in Under 1 Minute
  • How to Tabulate Data Using Pivot Table for Your Research Results
  • Dummy Variables: A Solution for Categorical Variables in OLS Linear Regression
  • The Difference Between Residual and Error in Statistics
Copyright KANDA DATA 2025. All Rights Reserved